package com.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.entity.ExamHistory;
import com.chen.vo.ExamHistoryPaperVO;
import com.chen.vo.ExamHistoryVO;

import java.util.List;

/**
 * 考试历史记录
 */
public interface ExamHistoryService extends IService<ExamHistory> {

    /**
     * 查看该考生是否已存在考试记录
     * @param studentId
     * @param examPaperId
     * @return
     */
    Long getHistoryInfoWithIds(Integer studentId, Integer examPaperId);

    /**
     * 学生考完试后交卷操作
     * @param studentId
     * @param examPaperId
     * @param classId
     * @param gradeId
     */
    void examSubmit(Integer studentId, Integer examPaperId, Integer classId, Integer gradeId);


    /**
     * 根据学生id获取学生考试记录
     * @param studentId
     * @return
     */
    List<ExamHistoryPaperVO> findExamHistoryByStudentId(Integer studentId);

    /**
     * 考试记录
     * @return
     */
    List<ExamHistoryVO> findExamHistoryList();

}
